package com.glodon.paas.search.model;

import java.util.Date;

import javax.ws.rs.QueryParam;

public class QueryRevitStructure extends RevitStructure implements QueryBase {
    private static final long serialVersionUID = 1L;
    @QueryParam("createTimeFrom")
    private Date createTimeFrom;
    @QueryParam("createTimeTo")
    private Date createTimeTo;
    @QueryParam("updateTimeFrom")
    private Date updateTimeFrom;
    @QueryParam("updateTimeTo")
    private Date updateTimeTo;
    @QueryParam("from")
    private int from = 0;// 查询的其实记录
    @QueryParam("size")
    private int size = 10;// 查询返回的记录数
    @QueryParam("structure")
    private String structure;

    public Date getCreateTimeFrom() {
        return createTimeFrom;
    }

    public void setCreateTimeFrom(Date createTimeFrom) {
        this.createTimeFrom = createTimeFrom;
    }

    public Date getCreateTimeTo() {
        return createTimeTo;
    }

    public void setCreateTimeTo(Date createTimeTo) {
        this.createTimeTo = createTimeTo;
    }

    public Date getUpdateTimeFrom() {
        return updateTimeFrom;
    }

    public void setUpdateTimeFrom(Date updateTimeFrom) {
        this.updateTimeFrom = updateTimeFrom;
    }

    public Date getUpdateTimeTo() {
        return updateTimeTo;
    }

    public void setUpdateTimeTo(Date updateTimeTo) {
        this.updateTimeTo = updateTimeTo;
    }

    public int getFrom() {
        return from;
    }

    public void setFrom(int from) {
        this.from = from;
    }

    public int getSize() {
        return size > 0 ? size : 10;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getStructure() {
        return structure;
    }

    public void setStructure(String structure) {
        this.structure = structure;
    }

    @Override
    public String toString() {
        return "QueryRevitStructure [createTimeFrom=" + createTimeFrom + ", createTimeTo=" + createTimeTo
                + ", updateTimeFrom=" + updateTimeFrom + ", updateTimeTo=" + updateTimeTo + ", from=" + from
                + ", size=" + size + ", structure=" + structure + ", getFileId()=" + getFileId() + ", getStructures()="
                + getStructures() + ", getContent()=" + getContent() + ", getId()=" + getId() + ", getName()="
                + getName() + ", getDatabagId()=" + getDatabagId() + ", getProjectId()=" + getProjectId()
                + ", getParentId()=" + getParentId() + ", getOwnerId()=" + getOwnerId() + ", getShares()="
                + getShares() + ", getVersion()=" + getVersion() + ", getPath()=" + getPath() + "]";
    }

}
